package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.base.DataBindBaseViewHolder
import com.gexiaobao.pigeon.app.model.bean.MemberLoftPassDataList
import com.gexiaobao.pigeon.databinding.ItemAboutThisOrgBinding

/**
 * @Author      : hxw
 * @Date        : 2024/7/19 16:40
 * @Describe    :
 */
class AdapterAboutThisOrg(data: ArrayList<MemberLoftPassDataList>) :
    BaseQuickAdapter<MemberLoftPassDataList, DataBindBaseViewHolder>(R.layout.item_about_this_org, data) {
    override fun convert(holder: DataBindBaseViewHolder, item: MemberLoftPassDataList) {
        val binding = DataBindBaseViewHolder.getBinding(holder) as ItemAboutThisOrgBinding
        binding.data = item
        binding.executePendingBindings()//防止列表抖动
    }
}